<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class XcRenter extends Model
{
    protected $table = 'xc_renter';
    protected $guarded = ['id'];

    public function device( )
    {
        return $this->hasMany('App\Models\XcDevice','renter_id','id');
    }

    public function contract()
    {
        return $this->hasMany('App\Models\XcRenterContract', 'renter_id', 'id');
    }
}
